package com.woniuxy.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.woniuxy.entity.ChooseCourse;
import com.woniuxy.entity.CoachFreeday;
import com.woniuxy.entity.Course;
import com.woniuxy.entity.Focus;
import com.woniuxy.entity.GymCoach;
import com.woniuxy.entity.GymInfo;
import com.woniuxy.entity.Style;
import com.woniuxy.entity.User;
/**
 * 查询场馆完整信息dao
 * 
 * @author 陈一珩
 *
 */
@Mapper
public interface GymInfoDao {
	//通过userId获取场馆信息
	public GymInfo selectAllGymInfoByUserId(Integer userId);
	//获取所有场馆教练信息
	public List<GymCoach> selectAllGymCoachByUserId(Integer userId);
	//修改场馆签约状态为4（拒绝）
	public Integer updateGymCoachNoSignByUserId(Integer gymId,Integer coachId);
	//修改场馆签约状态为3（签约）
	public Integer updateGymCoachSignByUserId(Integer gymId,Integer coachId);
	//修改场馆详细信息
	public Integer updateGymInfo(HashMap<String,Object> hashMap);
	//修改场馆img信息
	public Integer updateGymImg(String imgName,Long user_id);
	//获取4位签约教练
	public List<GymCoach> selectMySginCoachesByLimit4(Integer userId);
	//与教练解约
	public Integer deleteGymCoach(Integer gymId,Integer coachId);
	//显示申请签约教练
	public List<GymCoach> myPreEmp(Integer id);
	//查找关注我的人
	public List<Focus> focusMe(Integer id);
	//为签约教练排课
	public Integer arrangeCourse(ChooseCourse chooseCourse);
	//通过教练id查空闲时间
	public CoachFreeday getFreeTimeByid(Integer id,Date date);
	//更新教练空闲时间
	public Integer updateFreeTimeByid(CoachFreeday coachFreeday);
	//所有流派
	public List<Style> allStyles();
	//所有课程
	public List<Course> allCourses();
	//教练所有空闲时间
	public List<CoachFreeday> freeDayByCoachId(Long id);
	//场馆所有选课信息
	public List<ChooseCourse> allChooseCoursesByGid(Long id);
}
